widget: Cancel also denied sequences
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 10:08:46 +0000 (12:08 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 17:16:39 +0000 (19:16 +0200)
It makes no sense to skip denied sequences here, the gestures are
still carrying out the accounting for these, which must be also put
to an end if we're possibly not receiving any further events from
this sequence.

https://bugzilla.gnome.org/show_bug.cgi?id=754098

gtk/gtkwidget.c

index d813e8b73b72997be52d50337d0aca668edc2233..6798a89a1ad9e77a4ed78bf7da9eafce9a5989be 100644 (file)
@@ -4294,9 +4294,6 @@ _gtk_widget_cancel_sequence (GtkWidget        *widget,
           !gtk_gesture_handles_sequence (gesture, seq))
         seq = NULL;
 
-      if (!gtk_gesture_handles_sequence (gesture, seq))
-        continue;
-
       handled |= _gtk_gesture_cancel_sequence (gesture, seq);
     }